<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.view.*" %>
<%@ page import="com.conversationboard.config.*" %>
<%@ page import="java.util.*" %>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>

<% 
	/* Get the search results from the request */
	List<SearchResult> results = (List<SearchResult>) request.getAttribute("searchresults");
	
	String year = (String) request.getAttribute("year");
	String month = (String) request.getAttribute("month");
	int offset = (Integer) request.getAttribute("offset");
	
	offset += 100;
	
	User user = (User) request.getAttribute("user");
	
	String postbackParameters = "?year=" + year + "&amp;month=" + month + "&amp;offset=" + offset;
	String displayDate = (String) request.getAttribute("displaydate");
%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title><%=year%>/<%=month%></title>
		<link rel="stylesheet" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal(), Page.SEARCH) %>

		<div class="headingblock">
			<h1>Threads Created in <%=displayDate %></h1>
		</div>
		
		<div class="mainblock">

			<%=	SearchResultsDisplay.display(results, user) %>
			
			<br /><br />
			
			<a href="<%=Configuration.getInstance().getRoot()%>/ThreadsInMonthControllerServlet<%=postbackParameters%>">Next...</a>
		</div>
	
		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
	
	</body>
	
</html>
